import request from '@/utils/request'

// 查询订单结算列表
export function listOrderSettle(query) {
  return request({
    url: '/vanger/orderSettle/list',
    method: 'get',
    params: query
  })
}

// 查询订单结算列表（联合）
export function listUnion(query) {
  return request({
    url: '/vanger/orderSettle/listUnion',
    method: 'get',
    params: query
  })
}


// 查询订单结算详细（联合）
export function getInfoUnion(id) {
  return request({
    url: '/vanger/orderSettle/getInfoUnion/' + id,
    method: 'get'
  })
}

// 查询订单结算详细
export function getOrderSettle(id) {
  return request({
    url: '/vanger/orderSettle/' + id,
    method: 'get'
  })
}

// 新增订单结算
export function addOrderSettle(data) {
  return request({
    url: '/vanger/orderSettle',
    method: 'post',
    data: data
  })
}

// 修改订单结算
export function updateOrderSettle(data) {
  return request({
    url: '/vanger/orderSettle',
    method: 'put',
    data: data
  })
}

// 删除订单结算
export function delOrderSettle(id) {
  return request({
    url: '/vanger/orderSettle/' + id,
    method: 'delete'
  })
}
